<div id="stylized-form">
	<h2><!--[gt text='SpaMenu Form']--></h2>
	<div class="wrapper-block">
		<ul>
    <table border="1">
		<!--[foreach from=$objectArray item=spaMenuList]-->          
      <tr>
          <td> <!--[$spaMenuList.id ]--> </td>
          <td> <!--[$spaMenuList.title ]--> </td>
          <td> <!--[$spaMenuList.titleTranslate ]--> </td>
          <td> <!--[$spaMenuList.category_title ]--> </td>
          <td>
			
			<ul>
			<!--[foreach from=$extendResult.spaMenuTime item=spaMenuTimes key=key]-->
				<!--[if $spaMenuList.id eq $key]-->
					<!--[foreach from=$spaMenuTimes item=spaMenuTime]-->
					<li>[<!--[$spaMenuTime.id]-->] - <!--[$spaMenuTime.timeMins]--> mins - <!--[$spaMenuTime.price]--> baht</li>
					<!--[/foreach]-->
				<!--[/if]-->
			<!--[/foreach]-->
			</ul>
		  </td>
          <td> <a href="<!--[pnmodurl modname='spaservice' type='admin' func='form' ctrl=spamenu id=$spaMenuList.id ]-->">Edit</a>|<a href="<!--[pnmodurl modname='spaservice' type='admin' func='delete' ctrl=spamenu id=$spaMenuList.id ]-->">Delete</a>|<a href="<!--[pnmodurl modname='spaservice' type='user' func='view' ctrl=spamenu id=$spaMenuList.id ]-->">View</a> </td>
      </tr>    	
		 <!--[/foreach]-->
     </table>     
		</ul>		 
	</div>
</div>